package com.vo;

import lombok.Data;

import java.util.List;

/**
 * @author mornd
 * @date 2020/11/12 - 19:38
 */

/**
 * 返回给前台的数据格式类
 *
 * @param <T>
 */
@Data
public class DataVO<T> {
    private Integer code = 0;
    private String msg = "";
    private Long count;
    private List<T> data;

    public DataVO(Long count, List<T> data) {
        this.count = count;
        this.data = data;
    }
}
